<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文档管理</title>
    <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/favicon.ico"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/common.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/dtree.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/extend/font/dtreefont.css">

    <!-- 图标 -->
    <link rel="stylesheet" href="../../static/CaoMei/style.css">

</head>

<body>

<div class="yadmin-body animated fadeIn">
    <form class="layui-form yadmin-search-area input">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label for="documentname" class="layui-form-label">文档名</label>

                <div class="layui-input-inline">
                    <input type="text" name="documentname" autocomplete="off"
                           id="documentname" class="layui-input">
                </div>

                <button lay-submit="" lay-filter="search"
                        class="layui-btn search_btn layui-btn-sm layui-btn-primary table-action"
                        data-type="reload">
                    <i class="layui-icon layui-icon-search">搜索</i>
                </button>
            </div>
        </div>
    </form>

    <table class="layui-hide" id="document-table"></table>
</div>

<script type="text/html" id="toolbar">

    <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event="upload">
        <i class="layui-icon layui-icon-addition"></i>
        上传文档
    </button>

</script>

<script type="text/html" id="check-toolbar">

    <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="checkResult">
        <i class="layui-icon layui-icon-file-b" title="查看审核结果"></i>
        查看审核结果
    </button>

</script>

<script type="text/html" id="column-toolbar">

    <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view">
        <i class="layui-icon layui-icon-file-b" title="查看"></i>
        查看
    </button>

    <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="download">
        <i class="layui-icon layui-icon-download-circle" title="下载"></i>
        下载
    </button>

</script>

<script type="text/html" id="statusTpl">
    <input type="checkbox" name="status" value="{{d.userId}}" lay-skin="switch" lay-text="正常|锁定" lay-filter="status" {{ d.status == '1' ? 'checked' : '' }}>
</script>

<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script src="${pageContext.request.contextPath}/layui/layui.js"></script>
<script src="${pageContext.request.contextPath}/js/common.js"></script>

<script>
    var userId = '${user.id}';
    var trueName = '${user.trueName}';
</script>

<script src="${pageContext.request.contextPath}/js/document/manager-document.js"></script>

</body>
</html>